﻿using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;

namespace internal_website.Models
{
    public class User : IUser
    {
        #region Constructor

        public User()
        {
            Instruments = new Collection<Instrument>();
            Events = new Collection<Event>();
            UserRoles = new Collection<UserRole>();
        }

        #endregion

        [Key]
        public int Id { get; set; }
        public bool Active { get; set; }

        public bool Administrator { get; set; }

        public string FirstName { get; set; }
        public string LastName { get; set; }

        public string Street { get; set; }
        public string PostalCode { get; set; }
        public string City { get; set; }
        public string Country { get; set; }

        public string Phone { get; set; }
        public string MobilePhone { get; set; }

        public string EMail { get; set; }

        #region Navigation properties

        public virtual ICollection<Instrument> Instruments { get; set; }
        public virtual ICollection<Event> Events { get; set; }
        public virtual ICollection<UserRole> UserRoles { get; set; }

        #endregion

    }
} 